//
// Created by Administrator on 2017/09/25.
//
#ifdef __cplusplus
extern "C" {
#endif
#include <jni.h>
#include <android/log.h>
#include <assert.h>
#include <stdio.h>

#define LOG_TAG "junfutong"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)

/*-default pay url-*/
#define DEFAULT_PAY_URL_JFT "http://876hfd.jtpay.com"
#define DEFAULT_PAY_URL_YHB "http://126g33.payhee.com"
#define DEFAULT_PAY_URL_YZF "http://8756d562.payeay.com"
#define DEFAULT_PAY_URL_WSF "http://21d.paywap.cn"

/*-main api-*/
#define GET_SERVICES_JFT "http://123ttd1.jtpay.com/sdk/serverlistNew"
#define GET_SERVICES_YHB "http://36g43.payhee.com/sdk/serverlistNew"
#define GET_SERVICES_YZF "http://333dddx.payeay.com/sdk/serverlistNew"
#define GET_SERVICES_WSF "http://8888j.paywap.cn/sdk/serverlistNew"

/*-sharepreference key-*/
#define SHAREPERFERENCE_NAME "paySdk"
#define SHAREPERFERENCE_MSG_KEY "PaySdkMsg"
#define SHAREPERFERENCE_NONCE_KEY "PaySdkNonce"
#define SHAREPERFERENCE_SERVCERS_SUM_KEY "PaySdkServersSum"
#define SHAREPERFERENCE_SERVCERS_CURRENT_KEY "PaySdkServersCurrent"
#define SHAREPERFERENCE_TIMER_HISTORY "HistoryNumber"

jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlJftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_JFT);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlYhbFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_YHB);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlYzfFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_YZF);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlWsfFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_WSF);
}
jstring
Java_sdk_pay_constant_PayConstant_getServicesJftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_JFT);
}
jstring
Java_sdk_pay_constant_PayConstant_getServicesYhbFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_YHB);
}
jstring
Java_sdk_pay_constant_PayConstant_getServicesYzfFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_YZF);
}
jstring
Java_sdk_pay_constant_PayConstant_getServicesWsfFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_WSF);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceNameFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_NAME);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceMsgKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_MSG_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceNonceKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_NONCE_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceServcersSumKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_SERVCERS_SUM_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceServcersCurrentKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_SERVCERS_CURRENT_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceTimerHistoryFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_TIMER_HISTORY);
}

#ifdef __cplusplus
}
#endif


